package com.itheima.stock.mapper;

import com.itheima.stock.entity.StockRtInfo;
import com.itheima.stock.vo.IncreaseVO;
import com.itheima.stock.vo.OptionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author zby
 * @description 针对表【stock_rt_info(个股详情信息表)】的数据库操作Mapper
 * @created 2024-06-17 20:58:15
 *  对应实体类 {@link StockRtInfo}
 */
@Mapper
public interface StockRtInfoMapper {
    //获取涨停或跌停数据列表
    List<OptionVO> selectUpOrDown(@Param("begin") LocalDateTime begin,
                                  @Param("end") LocalDateTime end,
                                  @Param("flag") boolean flag);

    List<IncreaseVO> stockAll();

    List<StockRtInfo> selectByDateTime(LocalDateTime last);



}




